defmodule PrivateLibCluster do
	@moduledoc """
	Documentation for `PrivateLibCluster`.
	"""
	use Application

	@impl true
	def start(_type, _args) do
		# 用法示例如下
		#		AppConfigure.start_link("PrivateLibClusterConfigPath")
		#		# 设置节点信息可不要
		#		Pango.NodeConfig.set_node_info()
		#		#	Pango.LogConfig.config_log()
		#
		#		children =
		#			[
		#				{Cluster.Supervisor, [AppConfigure.fetch(:topologies), [name: PrivateLibCluster.ClusterSupervisor]]},
		#				# Swarm 注册名称
		#				{Pango.ExampleClusterRpc, [ExampleClusterRpc]},
		#				# Starts a worker by calling: PrivateLibDb.Worker.start_link(arg)
		#				# {PrivateLibDb.Worker, arg}
		#				# 启动 swarm 消息处理进程池
		#			] ++ Pango.ExampleClusterRpc.children()
		#
		#		# See https://hexdocs.pm/elixir/Supervisor.html
		#		# for other strategies and supported options
		#		opts = [strategy: :one_for_one, name: PrivateLibCluster.Supervisor]
		#		{:ok, pid} = Supervisor.start_link(children, opts)
		#		Application.put_env(:private_lib_cluster, :start_ok, :success)
		#		{:ok, pid}
	end


end
